package org.graduation.common;

import org.graduation.model.common.RBAC.Permissions;

public class NoPermissionException extends RuntimeException {
    private Permissions permissions;

    public NoPermissionException() {
    }

    public NoPermissionException(Permissions permissions) {
        super("缺少" + permissions.getName() + "权限");
    }

    public NoPermissionException(String message) {
        super(message);
    }

    public NoPermissionException(String message, Throwable cause) {
        super(message, cause);
    }

    public NoPermissionException(Throwable cause) {
        super(cause);
    }

    public NoPermissionException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
